package ch.ethz.group3.myalbum.client;

import com.smartgwt.client.widgets.tile.TileGrid;
import com.smartgwt.client.widgets.viewer.DetailViewerField;

public class ImageTileGrid extends TileGrid {

	private DetailViewerField imageUrl;
	private DetailViewerField name;

	public ImageTileGrid() {
		setTileWidth(150);
		setTileHeight(160);
		setShowAllRecords(true);
		setShowEdges(false);
		setTileMargin(20);
		setTileValueAlign("center");
		setAnimateTileChange(true);
		setCanDragReposition(true);
		setBackgroundColor("white");
		this.imageUrl = new DetailViewerField("imageUrl");
		this.name = new DetailViewerField("Name");
		setFields(imageUrl, name);
	}

}
